package pri.zxx.webdemo.utils;

/**
 * @author wangn <15124178@qq.com> 2020/9/9
 */
public class TokenHolder {
    private static final ThreadLocal<String> TOKEN = new ThreadLocal<>();

    public static void add(String token) {
        TOKEN.set(token);
    }

    public static void remove() {
        TOKEN.remove();
    }

    public static String get() {
        return TOKEN.get();
    }
}
